﻿//
// Created: 2018/8/21
// Author: chenqiang
//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xproject.Framework.Core;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model.WXshopBuiness
{
    public class  WXProduct:IEntity
    {
    
       ///<summary>
       ///
       ///<summary>
       public string ProductID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int CategoryID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ProductName  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ProductCode  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ShortDesc  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string DetailDesc  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime CreateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int VistiCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int StartVistiCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int IsShowVistiCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int SaleCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int StartSaleCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int IsShowSaleCounts  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl1  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl2  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl3  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl4  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl5  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl6  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl7  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl8  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ImageUrl9  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Domain { get; set; }
       public string ThumbnailUrl1  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ThumbnailUrl2  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public decimal MarketPrice  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public decimal CostPrice  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public decimal SalePrice  { get; set; } 

        [NotMapped]
        public string SalePriceStr {
            get {
                return SalePrice.ToString("#0.00");
            }
        }
        [NotMapped]
        public string AllSpec
        {
            get
            {
                return Spec1 + " " + Spec2 + " " + Spec3 + " " + Spec4 + " " + Spec5;
            }
        }
        ///<summary>
        ///
        ///<summary>
        public int Stock  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int Weight  { get; set; } 
       ///<summary>
       ///是否包邮 1包邮
       ///<summary>
       public int IsFreeShipping  { get; set; } 
       ///<summary>
       ///0：出售中 1：已下架
       ///<summary>
       public int State  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int SortID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Remark  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int IsUpgradeProduct  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public int GradeID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string CommissionRule  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public decimal UseMaxScore  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string ProductType  { get; set; } 
       ///<summary>
       ///所属厂家
       ///<summary>
       public string MerchantID  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string SubType  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Size  { get; set; } 
       ///<summary>
       ///搜索关键字
       ///<summary>
       public string ProductKeyword  { get; set; } 
       ///<summary>
       ///型号
       ///<summary>
       public string BrandModel  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Color  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public DateTime UpdateTime  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Creator  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Updator  { get; set; } 
       ///<summary>
       ///指定在那个区域显示 比如（TUIJIAN 推荐首页）
       ///<summary>
       public string ShowOnWhere  { get; set; } 
       ///<summary>
       ///推荐星数 就是有几个星星
       ///<summary>
       public int Stars  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Spec1  { get; set; } 
       ///<summary>
       ///其它特征、参数
       ///<summary>
       public string Spec2  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Spec3  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string Spec4  { get; set; } 
       ///<summary>
       ///
       ///<summary>
       public string   Spec5  { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PicFileIds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FileId1 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FileId2 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId3 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId4 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId5 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId6 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId7 { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string FileId8 { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string FileId9 { get; set; }


        ///<summary>
        ///
        ///<summary>
        public string Site { get; set; }

        public string PromotionId { get; set; }

        public string VideoUrl { get; set; }

        public string VideoType { get; set; }
        /// <summary>
        /// 样式风格
        /// </summary>
        public string ShowStyle { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [NotMapped]
        public string StrCreateTime {
            get {
                return CreateTime.ToString("yyyy-MM-dd HH:mm:ss");
            }
        }

         
        [NotMapped]
        public long Id { get; set; }

        [NotMapped]
        public EntityState EntityState { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }
    }
}